package clases;


public class IP {
	
	private String nroIP;
	private int puerto;
	public IP(String nroIP) {
		super();
		this.nroIP = nroIP;
	}
	public IP(String IP, int puerto) {
		super();
		this.nroIP = IP;
		this.puerto = puerto;
	}
	

	public boolean esMayor(IP s2){
		//ToDo
		return true;
		
	}
	public boolean estaDentroDeRango(IP limiteInferior, IP limiteSuperior){
		return this.esMayor(limiteInferior) && limiteSuperior.esMayor(this);
		
	}
	@Override
	public String toString() {
		return "IP [nroIP=" + nroIP + ", puerto=" + puerto + "]";
	}
	public String getNroIP() {
		return nroIP;
	}
	public void setNroIP(String nroIP) {
		this.nroIP = nroIP;
	}
	public int getPuerto() {
		return puerto;
	}
	public void setPuerto(int puerto) {
		this.puerto = puerto;
	}
	
}
